#ifndef DRV_BSP_UART_H
#define DRV_BSP_UART_H

#include "usart.h"

/**
 * @brief 串口接收体实例
 */
typedef struct
{
    UART_HandleTypeDef *huart;
    uint8_t data;
    uint8_t state;
    uint8_t cnt;
} UartRx_t;

/**
 * @brief 初始化一个串口接收体实例
 * @param rx: 串口接收体实例
 * @param huart: uart句柄
 * @retval None
 */
void BSP_UART_Init(UartRx_t *rx, UART_HandleTypeDef *huart);

#endif //DRV_BSP_UART_H
